package com.bsh.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bsh.api.params.DtoBankInfo;
import com.bsh.mybatis.model.Bank;
import com.bsh.repository.DaoBank;
import com.bsh.service.BankService;

@Transactional
@Service
public class BankServiceImpl implements BankService {

	@Autowired
	private DaoBank daoBank;
	
	
	@Override
	public Bank selectByPrimaryKey(Integer id) {
		return daoBank.selectByPrimaryKey(id);
	}

	@Override
	public List<DtoBankInfo> queryBankList() {
		return daoBank.queryBankList();
	}

}
